#include <iostream>
#include <math.h>
using namespace std;

int toInteger(float num) {
	if (num - int(num) >= 0.5)
		return ceill(num);
	else return floor(num);
}

int main() {
	float num;
	cin >> num;
	int res = toInteger(num);
	cout << res << endl;
}
